#ifndef WHEELMOTOR_H
#define WHEELMOTOR_H

#include <Arduino.h>
#include "Define.h"

class WheelMotor {
public:
    String motorName = "";
    int duty = 0; // 调速 占空比
    PinType forwardPin = PIN_PENDING; // 前进端口pin
    PinType reversePin = PIN_PENDING; // 后退端口pin

    // 构造函数
    WheelMotor(String motorNameV, PinType forwardPinV, PinType reversePinV);

    // 启动车轮电机
    OperateStatus operateMotor(DirectionType direction, int duty);
};

#endif // WHEELMOTOR_H
